package org.apache.servicecomb.samples.practise.houserush.user.center.api;

import org.apache.servicecomb.samples.practise.houserush.user.center.rpc.po.Favorite;
import org.apache.servicecomb.samples.practise.houserush.user.center.rpc.po.HouseDetail;
import org.apache.servicecomb.samples.practise.houserush.user.center.rpc.po.HouseOrder;

import java.util.List;

/**
 * @Author: Snake Man
 * @system:
 * @DateTime: 2021/12/26 22:02
 * @Description:
 */
public interface UserCenterApi  {

    String testRPC();

    //GET 查询客户收藏列表 /favorites
    List<Favorite> findMyFavorite(int customerId);

    //GET 查询客户收藏详情 /favorites/{houseId}
    HouseDetail findByHouseIdDetail(int houseId);

    //GET 查询房源订单 /buyHouseOrderState
    List<HouseOrder> findMyBuyHouseNumber(int customerId);
}
